package com.bbcare.department.plat.store.ibatis;

import java.util.List;
import java.util.Map;

import com.bbcare.department.plat.entity.Doctor;

public interface IDoctorDao {
	/**
	 * 通过ID查询医生信息
	 * @param id
	 * @return
	 */
	public Doctor selectById(Map<String,Object> param) throws Exception;
	
	/**
	 * 通过科室ID查询所有医生
	 * @param id
	 * @return
	 */
	public List<Doctor> selectByDepId(String deptId) throws Exception;
	
	/**
	 * 通过科室ID查询所有医生总数
	 * @param id
	 * @return
	 */
	public int countByDepId(Map<String,Object> paramMap) throws Exception;
	

	/**
	 * 通过查询条件 科室下所有医生
	 * @param id
	 * @return
	 */
	public List<Doctor> selectByCondition(Map<String,Object> paramMap) throws Exception;
	
	/**
	 * 通过ID删除医生
	 * @param id
	 * @return
	 */
	public int deleteyIds(List<String> ids) throws Exception;
	
	
	/**
	 * 更新医生信息
	 * @param account
	 * @return
	 */
	public int update(Doctor doctor) throws Exception;
	

	/**
	 * 新建医信息
	 * @param account
	 * @return
	 */
	public int save(Doctor doctor) throws Exception;
}
